package org.codeart.pattern.visitor.kpi;

import java.util.Random;

/**
 * 员工基类
 */
public abstract class Employee {

    public String name;

    public int kpi;

    public Employee(String name) {
        this.name = name;
        this.kpi = new Random().nextInt(10);
    }

    /**
     * 核心方法,接受访问者的访问
     */
    public abstract void accept(IVisitor visitor);
}